<script type="text/javascript">
    var bg_class = '<?php echo $bg_class; ?>';
</script>

<?php include_partial('index', array('form' => $form)) ?>